\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b}{
\section{versionSync.sqliteDB.sqliteDB Class Reference}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b}\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
}


sqlite3 db API  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_acf01fd2304d4476d3e9ad443e9769b29}{\_\-\_\-init\_\-\_\-}
\item 
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a4c1c550e3213fd1cc28c8635d8b32532}{setDBname}
\begin{DoxyCompactList}\small\item\em Sets db name. \item\end{DoxyCompactList}\item 
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ae2bb97f1ef696e53c9966d22daabb9c0}{open}
\begin{DoxyCompactList}\small\item\em Open db connection. \item\end{DoxyCompactList}\item 
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a6d503841e944bf8c3d8039cde11ecda0}{close}
\begin{DoxyCompactList}\small\item\em Close db connection. \item\end{DoxyCompactList}\item 
\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a7a127936fde3a7b715460c2dbdff9e38}{
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a7a127936fde3a7b715460c2dbdff9e38}{commit}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a7a127936fde3a7b715460c2dbdff9e38}

\begin{DoxyCompactList}\small\item\em Commits a series of dml queries. \item\end{DoxyCompactList}\item 
def \hyperlink{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ade4d4c58d8150ee9457fd33ab3c85abe}{execute}
\begin{DoxyCompactList}\small\item\em Execute a query. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
sqlite3 db API \begin{DoxyAuthor}{Author}
Alessio Di Pietro 

Irene Scionti \begin{DoxyVerb}
Manage sqlite3 database
\end{DoxyVerb}
 
\end{DoxyAuthor}


Definition at line 5 of file sqliteDB.py.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_acf01fd2304d4476d3e9ad443e9769b29}{
\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}!\_\-\_\-init\_\-\_\-@{\_\-\_\-init\_\-\_\-}}
\index{\_\-\_\-init\_\-\_\-@{\_\-\_\-init\_\-\_\-}!versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
\subsubsection[{\_\-\_\-init\_\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def versionSync.sqliteDB.sqliteDB.\_\-\_\-init\_\-\_\- (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{dbname = {\ttfamily None}}
\end{DoxyParamCaption}
)}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_acf01fd2304d4476d3e9ad443e9769b29}

\begin{DoxyParams}{Parameters}
{\em dbname} & name of the file containing the db (optional) \begin{DoxyVerb}
Constructor
\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}


Definition at line 10 of file sqliteDB.py.



\subsection{Member Function Documentation}
\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a6d503841e944bf8c3d8039cde11ecda0}{
\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}!close@{close}}
\index{close@{close}!versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}def versionSync.sqliteDB.sqliteDB.close (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a6d503841e944bf8c3d8039cde11ecda0}


Close db connection. 

\begin{DoxyVerb}
close the connection to the DB file
\end{DoxyVerb}
 

Definition at line 33 of file sqliteDB.py.

\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ade4d4c58d8150ee9457fd33ab3c85abe}{
\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}!execute@{execute}}
\index{execute@{execute}!versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
\subsubsection[{execute}]{\setlength{\rightskip}{0pt plus 5cm}def versionSync.sqliteDB.sqliteDB.execute (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{dml\_\-query}
\end{DoxyParamCaption}
)}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ade4d4c58d8150ee9457fd33ab3c85abe}


Execute a query. 


\begin{DoxyParams}{Parameters}
{\em dml\_\-query} & the query \begin{DoxyVerb}
execute an update, insert or delete query
\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}


Definition at line 46 of file sqliteDB.py.

\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ae2bb97f1ef696e53c9966d22daabb9c0}{
\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}!open@{open}}
\index{open@{open}!versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
\subsubsection[{open}]{\setlength{\rightskip}{0pt plus 5cm}def versionSync.sqliteDB.sqliteDB.open (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_ae2bb97f1ef696e53c9966d22daabb9c0}


Open db connection. 

\begin{DoxyReturn}{Returns}
a db cursor \begin{DoxyVerb}
Open the connection to the DB file
\end{DoxyVerb}
 
\end{DoxyReturn}


Definition at line 22 of file sqliteDB.py.

\hypertarget{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a4c1c550e3213fd1cc28c8635d8b32532}{
\index{versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}!setDBname@{setDBname}}
\index{setDBname@{setDBname}!versionSync::sqliteDB::sqliteDB@{versionSync::sqliteDB::sqliteDB}}
\subsubsection[{setDBname}]{\setlength{\rightskip}{0pt plus 5cm}def versionSync.sqliteDB.sqliteDB.setDBname (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{dbname}
\end{DoxyParamCaption}
)}}
\label{classversion_sync_1_1sqlite_d_b_1_1sqlite_d_b_a4c1c550e3213fd1cc28c8635d8b32532}


Sets db name. 


\begin{DoxyParams}{Parameters}
{\em dbname} & name of the file containing the db (optional) \\
\hline
\end{DoxyParams}


Definition at line 18 of file sqliteDB.py.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/alessio/workspace/versionSync/versionSync/src/versionSync/sqliteDB.py\end{DoxyCompactItemize}
